
const semver = require('semver');
const log = require('./log');


module.exports = function checkNodeVersion(requireNodeVersion) {
    if (!semver.satisfies(process.version, requireNodeVersion)) {
        log.error(`You are using Node ${requireNodeVersion}`);
        process.exit(1);
    }
};


